.class public Lcom/example/m6shop/GoodsActivity;
.super Landroid/app/Activity;
.source "GoodsActivity.java"

# interfaces
.implements Lorg/com/cctest/view/XListView$IXListViewListener;


# static fields
.field public static me:Lcom/example/m6shop/GoodsActivity;

.field private static pagesize:I


# instance fields
.field bagcost:F

.field btn2:Landroid/widget/Button;

.field btn3:Landroid/widget/Button;

.field btn4:Landroid/widget/Button;

.field button1:Landroid/widget/Button;

.field dataarray:Lorg/json/JSONObject;

.field private gl:Ljava/util/List;
    .annotation system Ldalvik/annotation/Signature;
        value = {
            "Ljava/util/List",
            "<",
            "Lbean/GoodsBean;",
            ">;"
        }
    .end annotation
.end field

.field goodsid:Ljava/lang/String;

.field goostype:Lorg/com/cctest/view/XListView;

.field public h:Landroid/os/Handler;

.field islive:Ljava/lang/String;

.field m:Lmyapp/MyApp;

.field private mcontext:Landroid/content/Context;

.field myLoginView:Landroid/view/View;

.field name:Ljava/lang/String;

.field orderCc:Ljava/lang/String;

.field private templs:Ljava/util/List;
    .annotation system Ldalvik/annotation/Signature;
        value = {
            "Ljava/util/List",
            "<",
            "Lbean/GoodsBean;",
            ">;"
        }
    .end annotation
.end field

.field typeid:Ljava/lang/String;

.field typenamevalue:Ljava/lang/String;

.field width:I


# direct methods
.method static constructor <clinit>()V
    .locals 1

    .prologue
    .line 65
    const/16 v0, 0xa

    sput v0, Lcom/example/m6shop/GoodsActivity;->pagesize:I

    return-void
.end method

.method public constructor <init>()V
    .locals 2

    .prologue
    const/4 v1, 0x0

    .line 47
    invoke-direct {p0}, Landroid/app/Activity;-><init>()V

    .line 48
    iput-object v1, p0, Lcom/example/m6shop/GoodsActivity;->m:Lmyapp/MyApp;

    .line 49
    iput-object v1, p0, Lcom/example/m6shop/GoodsActivity;->typeid:Ljava/lang/String;

    .line 50
    iput-object v1, p0, Lcom/example/m6shop/GoodsActivity;->name:Ljava/lang/String;

    .line 51
    iput-object v1, p0, Lcom/example/m6shop/GoodsActivity;->typenamevalue:Ljava/lang/String;

    .line 52
    iput-object v1, p0, Lcom/example/m6shop/GoodsActivity;->h:Landroid/os/Handler;

    .line 54
    iput-object v1, p0, Lcom/example/m6shop/GoodsActivity;->dataarray:Lorg/json/JSONObject;

    .line 55
    const/4 v0, 0x0

    iput v0, p0, Lcom/example/m6shop/GoodsActivity;->width:I

    .line 56
    iput-object v1, p0, Lcom/example/m6shop/GoodsActivity;->button1:Landroid/widget/Button;

    .line 57
    iput-object v1, p0, Lcom/example/m6shop/GoodsActivity;->btn2:Landroid/widget/Button;

    .line 58
    iput-object v1, p0, Lcom/example/m6shop/GoodsActivity;->btn3:Landroid/widget/Button;

    .line 59
    iput-object v1, p0, Lcom/example/m6shop/GoodsActivity;->btn4:Landroid/widget/Button;

    .line 62
    const-string v0, ""

    iput-object v0, p0, Lcom/example/m6shop/GoodsActivity;->goodsid:Ljava/lang/String;

    .line 64
    const-string v0, ""

    iput-object v0, p0, Lcom/example/m6shop/GoodsActivity;->orderCc:Ljava/lang/String;

    .line 47
    return-void
.end method

.method static synthetic access$0(Lcom/example/m6shop/GoodsActivity;)Landroid/content/Context;
    .locals 1

    .prologue
    .line 53
    iget-object v0, p0, Lcom/example/m6shop/GoodsActivity;->mcontext:Landroid/content/Context;

    return-object v0
.end method

.method static synthetic access$1(Lcom/example/m6shop/GoodsActivity;)Ljava/util/List;
    .locals 1

    .prologue
    .line 60
    iget-object v0, p0, Lcom/example/m6shop/GoodsActivity;->gl:Ljava/util/List;

    return-object v0
.end method

.method static synthetic access$2(Lcom/example/m6shop/GoodsActivity;)Ljava/util/List;
    .locals 1

    .prologue
    .line 60
    iget-object v0, p0, Lcom/example/m6shop/GoodsActivity;->templs:Ljava/util/List;

    return-object v0
.end method

.method static synthetic access$3()I
    .locals 1

    .prologue
    .line 65
    sget v0, Lcom/example/m6shop/GoodsActivity;->pagesize:I

    return v0
.end method

.method static synthetic access$4(I)V
    .locals 0

    .prologue
    .line 65
    sput p0, Lcom/example/m6shop/GoodsActivity;->pagesize:I

    return-void
.end method

.method static synthetic access$5(Lcom/example/m6shop/GoodsActivity;)V
    .locals 0

    .prologue
    .line 572
    invoke-direct {p0}, Lcom/example/m6shop/GoodsActivity;->onLoad()V

    return-void
.end method

.method private onLoad()V
    .locals 2

    .prologue
    .line 573
    iget-object v0, p0, Lcom/example/m6shop/GoodsActivity;->goostype:Lorg/com/cctest/view/XListView;

    invoke-virtual {v0}, Lorg/com/cctest/view/XListView;->stopRefresh()V

    .line 574
    iget-object v0, p0, Lcom/example/m6shop/GoodsActivity;->goostype:Lorg/com/cctest/view/XListView;

    invoke-virtual {v0}, Lorg/com/cctest/view/XListView;->stopLoadMore()V

    .line 575
    iget-object v0, p0, Lcom/example/m6shop/GoodsActivity;->goostype:Lorg/com/cctest/view/XListView;

    invoke-virtual {p0}, Lcom/example/m6shop/GoodsActivity;->GetTime()Ljava/lang/String;

    move-result-object v1

    invoke-virtual {v0, v1}, Lorg/com/cctest/view/XListView;->setRefreshTime(Ljava/lang/String;)V

    .line 577
    return-void
.end method


# virtual methods
.method public GetTime()Ljava/lang/String;
    .locals 3
    .annotation build Landroid/annotation/SuppressLint;
        value = {
            "SimpleDateFormat"
        }
    .end annotation

    .prologue
    .line 591
    new-instance v1, Ljava/text/SimpleDateFormat;

    .line 592
    const-string v2, "yyyy-MM-dd    hh:mm:ss"

    .line 591
    invoke-direct {v1, v2}, Ljava/text/SimpleDateFormat;-><init>(Ljava/lang/String;)V

    .line 593
    .local v1, "sDateFormat":Ljava/text/SimpleDateFormat;
    new-instance v2, Ljava/util/Date;

    invoke-direct {v2}, Ljava/util/Date;-><init>()V

    invoke-virtual {v1, v2}, Ljava/text/SimpleDateFormat;->format(Ljava/util/Date;)Ljava/lang/String;

    move-result-object v0

    .line 594
    .local v0, "date":Ljava/lang/String;
    return-object v0
.end method

.method public deletegoods()Z
    .locals 1

    .prologue
    .line 419
    new-instance v0, Lcom/example/m6shop/GoodsActivity$5;

    invoke-direct {v0, p0}, Lcom/example/m6shop/GoodsActivity$5;-><init>(Lcom/example/m6shop/GoodsActivity;)V

    .line 480
    invoke-virtual {v0}, Lcom/example/m6shop/GoodsActivity$5;->start()V

    .line 481
    const/4 v0, 0x0

    return v0
.end method

.method public getSource()Z
    .locals 1

    .prologue
    .line 333
    new-instance v0, Lcom/example/m6shop/GoodsActivity$4;

    invoke-direct {v0, p0}, Lcom/example/m6shop/GoodsActivity$4;-><init>(Lcom/example/m6shop/GoodsActivity;)V

    .line 415
    invoke-virtual {v0}, Lcom/example/m6shop/GoodsActivity$4;->start()V

    .line 416
    const/4 v0, 0x0

    return v0
.end method

.method public livegoods()Z
    .locals 1

    .prologue
    .line 641
    new-instance v0, Lcom/example/m6shop/GoodsActivity$9;

    invoke-direct {v0, p0}, Lcom/example/m6shop/GoodsActivity$9;-><init>(Lcom/example/m6shop/GoodsActivity;)V

    .line 703
    invoke-virtual {v0}, Lcom/example/m6shop/GoodsActivity$9;->start()V

    .line 704
    const/4 v0, 0x0

    return v0
.end method

.method protected onCreate(Landroid/os/Bundle;)V
    .locals 11
    .param p1, "savedInstanceState"    # Landroid/os/Bundle;

    .prologue
    .line 71
    invoke-super {p0, p1}, Landroid/app/Activity;->onCreate(Landroid/os/Bundle;)V

    .line 72
    const v8, 0x7f030006

    invoke-virtual {p0, v8}, Lcom/example/m6shop/GoodsActivity;->setContentView(I)V

    .line 73
    invoke-virtual {p0}, Lcom/example/m6shop/GoodsActivity;->getIntent()Landroid/content/Intent;

    move-result-object v3

    .line 74
    .local v3, "intent":Landroid/content/Intent;
    const-string v8, "typeid"

    invoke-virtual {v3, v8}, Landroid/content/Intent;->getStringExtra(Ljava/lang/String;)Ljava/lang/String;

    move-result-object v8

    iput-object v8, p0, Lcom/example/m6shop/GoodsActivity;->typeid:Ljava/lang/String;

    .line 75
    const-string v8, "typename"

    invoke-virtual {v3, v8}, Landroid/content/Intent;->getStringExtra(Ljava/lang/String;)Ljava/lang/String;

    move-result-object v7

    .line 77
    .local v7, "typename":Ljava/lang/String;
    invoke-virtual {p0}, Lcom/example/m6shop/GoodsActivity;->getApplicationContext()Landroid/content/Context;

    move-result-object v8

    check-cast v8, Lmyapp/MyApp;

    iput-object v8, p0, Lcom/example/m6shop/GoodsActivity;->m:Lmyapp/MyApp;

    .line 78
    iput-object p0, p0, Lcom/example/m6shop/GoodsActivity;->mcontext:Landroid/content/Context;

    .line 79
    sput-object p0, Lcom/example/m6shop/GoodsActivity;->me:Lcom/example/m6shop/GoodsActivity;

    .line 80
    sget-object v8, Lcom/example/m6shop/GoodsActivity;->me:Lcom/example/m6shop/GoodsActivity;

    const v9, 0x7f070051

    invoke-virtual {v8, v9}, Lcom/example/m6shop/GoodsActivity;->findViewById(I)Landroid/view/View;

    move-result-object v8

    check-cast v8, Lorg/com/cctest/view/XListView;

    iput-object v8, p0, Lcom/example/m6shop/GoodsActivity;->goostype:Lorg/com/cctest/view/XListView;

    .line 81
    iget-object v8, p0, Lcom/example/m6shop/GoodsActivity;->goostype:Lorg/com/cctest/view/XListView;

    const/4 v9, 0x1

    invoke-virtual {v8, v9}, Lorg/com/cctest/view/XListView;->setPullLoadEnable(Z)V

    .line 82
    iget-object v8, p0, Lcom/example/m6shop/GoodsActivity;->goostype:Lorg/com/cctest/view/XListView;

    invoke-virtual {v8, p0}, Lorg/com/cctest/view/XListView;->setXListViewListener(Lorg/com/cctest/view/XListView$IXListViewListener;)V

    .line 83
    iget-object v8, p0, Lcom/example/m6shop/GoodsActivity;->m:Lmyapp/MyApp;

    invoke-virtual {v8}, Lmyapp/MyApp;->getActivity()Ljava/util/ArrayList;

    move-result-object v1

    .line 84
    .local v1, "activityList":Ljava/util/ArrayList;, "Ljava/util/ArrayList<Landroid/app/Activity;>;"
    invoke-virtual {v1, p0}, Ljava/util/ArrayList;->add(Ljava/lang/Object;)Z

    .line 85
    const v8, 0x7f070070

    invoke-virtual {p0, v8}, Lcom/example/m6shop/GoodsActivity;->findViewById(I)Landroid/view/View;

    move-result-object v6

    check-cast v6, Landroid/widget/TextView;

    .line 86
    .local v6, "title_bar_name":Landroid/widget/TextView;
    new-instance v8, Ljava/lang/StringBuilder;

    invoke-static {v7}, Ljava/lang/String;->valueOf(Ljava/lang/Object;)Ljava/lang/String;

    move-result-object v9

    invoke-direct {v8, v9}, Ljava/lang/StringBuilder;-><init>(Ljava/lang/String;)V

    const-string v9, "\u5546\u54c1\u5217\u8868"

    invoke-virtual {v8, v9}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v8

    invoke-virtual {v8}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;

    move-result-object v8

    invoke-virtual {v6, v8}, Landroid/widget/TextView;->setText(Ljava/lang/CharSequence;)V

    .line 87
    const-string v8, "userInfo"

    .line 88
    const/4 v9, 0x0

    .line 87
    invoke-virtual {p0, v8, v9}, Lcom/example/m6shop/GoodsActivity;->getSharedPreferences(Ljava/lang/String;I)Landroid/content/SharedPreferences;

    move-result-object v4

    .line 89
    .local v4, "preferences":Landroid/content/SharedPreferences;
    const-string v8, "uid"

    const-string v9, ""

    invoke-interface {v4, v8, v9}, Landroid/content/SharedPreferences;->getString(Ljava/lang/String;Ljava/lang/String;)Ljava/lang/String;

    move-result-object v0

    .line 90
    .local v0, "account":Ljava/lang/String;
    if-eqz v0, :cond_0

    const-string v8, ""

    invoke-virtual {v0, v8}, Ljava/lang/String;->equals(Ljava/lang/Object;)Z

    .line 97
    :cond_0
    const v8, 0x7f0701dd

    invoke-virtual {p0, v8}, Lcom/example/m6shop/GoodsActivity;->findViewById(I)Landroid/view/View;

    move-result-object v5

    check-cast v5, Landroid/widget/ImageView;

    .line 98
    .local v5, "title_bar_menu_btn":Landroid/widget/ImageView;
    new-instance v8, Lcom/example/m6shop/GoodsActivity$1;

    invoke-direct {v8, p0}, Lcom/example/m6shop/GoodsActivity$1;-><init>(Lcom/example/m6shop/GoodsActivity;)V

    invoke-virtual {v5, v8}, Landroid/widget/ImageView;->setOnClickListener(Landroid/view/View$OnClickListener;)V

    .line 109
    const v8, 0x7f070052

    invoke-virtual {p0, v8}, Lcom/example/m6shop/GoodsActivity;->findViewById(I)Landroid/view/View;

    move-result-object v2

    check-cast v2, Landroid/widget/Button;

    .line 111
    .local v2, "addgoods":Landroid/widget/Button;
    new-instance v8, Lcom/example/m6shop/GoodsActivity$2;

    invoke-direct {v8, p0}, Lcom/example/m6shop/GoodsActivity$2;-><init>(Lcom/example/m6shop/GoodsActivity;)V

    invoke-virtual {v2, v8}, Landroid/widget/Button;->setOnClickListener(Landroid/view/View$OnClickListener;)V

    .line 167
    new-instance v8, Ljava/util/ArrayList;

    invoke-direct {v8}, Ljava/util/ArrayList;-><init>()V

    iput-object v8, p0, Lcom/example/m6shop/GoodsActivity;->gl:Ljava/util/List;

    .line 168
    new-instance v8, Ljava/util/ArrayList;

    invoke-direct {v8}, Ljava/util/ArrayList;-><init>()V

    iput-object v8, p0, Lcom/example/m6shop/GoodsActivity;->templs:Ljava/util/List;

    .line 169
    new-instance v8, Lcom/example/m6shop/GoodsActivity$3;

    invoke-direct {v8, p0}, Lcom/example/m6shop/GoodsActivity$3;-><init>(Lcom/example/m6shop/GoodsActivity;)V

    iput-object v8, p0, Lcom/example/m6shop/GoodsActivity;->h:Landroid/os/Handler;

    .line 328
    iget-object v8, p0, Lcom/example/m6shop/GoodsActivity;->mcontext:Landroid/content/Context;

    const-string v9, "\u8bf7\u7a0d\u540e"

    const-string v10, "\u63d0\u4ea4\u6570\u636e\u4e2d\u6570\u636e\u4e2d.."

    invoke-static {v8, v9, v10}, Lmyclass/Util;->showDialog(Landroid/content/Context;Ljava/lang/String;Ljava/lang/String;)V

    .line 329
    invoke-virtual {p0}, Lcom/example/m6shop/GoodsActivity;->getSource()Z

    .line 330
    return-void
.end method

.method public onKeyDown(ILandroid/view/KeyEvent;)Z
    .locals 2
    .param p1, "keyCode"    # I
    .param p2, "event"    # Landroid/view/KeyEvent;

    .prologue
    const/4 v1, 0x0

    .line 629
    const/4 v0, 0x4

    if-ne p1, v0, :cond_0

    invoke-virtual {p2}, Landroid/view/KeyEvent;->getRepeatCount()I

    move-result v0

    if-nez v0, :cond_0

    .line 634
    invoke-virtual {p0}, Lcom/example/m6shop/GoodsActivity;->finish()V

    .line 637
    :cond_0
    return v1
.end method

.method public onLoadMore()V
    .locals 4

    .prologue
    .line 618
    iget-object v0, p0, Lcom/example/m6shop/GoodsActivity;->h:Landroid/os/Handler;

    new-instance v1, Lcom/example/m6shop/GoodsActivity$8;

    invoke-direct {v1, p0}, Lcom/example/m6shop/GoodsActivity$8;-><init>(Lcom/example/m6shop/GoodsActivity;)V

    .line 625
    const-wide/16 v2, 0x7d0

    .line 618
    invoke-virtual {v0, v1, v2, v3}, Landroid/os/Handler;->postDelayed(Ljava/lang/Runnable;J)Z

    .line 627
    return-void
.end method

.method public onRefresh()V
    .locals 4

    .prologue
    .line 601
    iget-object v0, p0, Lcom/example/m6shop/GoodsActivity;->h:Landroid/os/Handler;

    new-instance v1, Lcom/example/m6shop/GoodsActivity$7;

    invoke-direct {v1, p0}, Lcom/example/m6shop/GoodsActivity$7;-><init>(Lcom/example/m6shop/GoodsActivity;)V

    .line 610
    const-wide/16 v2, 0x7d0

    .line 601
    invoke-virtual {v0, v1, v2, v3}, Landroid/os/Handler;->postDelayed(Ljava/lang/Runnable;J)Z

    .line 611
    return-void
.end method

.method public onStart()V
    .locals 1

    .prologue
    .line 582
    const/16 v0, 0xa

    sput v0, Lcom/example/m6shop/GoodsActivity;->pagesize:I

    .line 584
    invoke-virtual {p0}, Lcom/example/m6shop/GoodsActivity;->getSource()Z

    .line 585
    invoke-direct {p0}, Lcom/example/m6shop/GoodsActivity;->onLoad()V

    .line 587
    invoke-super {p0}, Landroid/app/Activity;->onStart()V

    .line 588
    return-void
.end method

.method public savegoods()Z
    .locals 1

    .prologue
    .line 485
    new-instance v0, Lcom/example/m6shop/GoodsActivity$6;

    invoke-direct {v0, p0}, Lcom/example/m6shop/GoodsActivity$6;-><init>(Lcom/example/m6shop/GoodsActivity;)V

    .line 568
    invoke-virtual {v0}, Lcom/example/m6shop/GoodsActivity$6;->start()V

    .line 569
    const/4 v0, 0x0

    return v0
.end method
